/**
 * 该文件用于定义通用的枚举类型;
 * 大厅相关协议转发枚举定义类型;
 * todo:根据需求添加自己的枚举;
 */

class GLDefine {
	EDebugType = {
		DEBUG: 0, //开发/测试
		RELEASE: 1, //正式
		MARKET_DEBUG: 2 // 市场内部测试
	};

	EAuthType = {
		//账号登录类型;
		GUEST: 0, //游客登录
		PHONE_ACCOUNT: 1, //手机账号登录;
		ACCOUNT_TOKEN: 2,
		WECHAT:3,//微信登陆
	};

	ESexType = {
		UNDEFINE: 0,
		MALE: 1, //男
		FEMALE: 2 //女
	};

	EXHRDataType = {
		Undefined: 0,
		Text: 1,
		Binary: 2
	};
	EWechatShareType = {
		TIME_LINE: "TimeLine_Share", //朋友圈;
		FRIEND: "Friend_Share" //朋友;
	};

	EPlantType = { //平台类型
		changcheng: 1,  //长城棋牌
	};
	EPlantName = {//平台名字
		1: "长城游戏",
	}
	EGameType = {
		qita: 1,//其它
		qipai: 2,//棋牌
		buyu: 3, //捕鱼
		dianzi: 4,//电子
		zhenren: 5,//真人视讯
		tiyu: 6,  // 体育投注
		dianjing: 7,//电竞游戏

	};

	/**
	 * 游戏模式（匹配、自建房）
	 */
	gameMode = {
		match: 0,//匹配
		build: 1,//自建
		myself: 2, //私人房
	};
	//玩家站起离桌原因
	StandupReason = {
		REASON_UNKNOW: 0, //
		REASON_ONSTANDUP: 1, //玩家主动站起
		REASON_READYTIMEOUT_STANDUP: 2, //准备超时站起
		REASON_DELETE_TABLE: 3, //桌子被删除,玩家站起
		REASON_DISCONNECTED: 4, //玩家断线了
		REASON_NOTENOUGH: 5, //金币不足被弹起
		REASON_GAME_CLOSED: 6,//游戏关闭
		REASON_GAME_END: 7, //游戏结束
		REASON_GAME_RULECHANGE: 8, //规则变更
		REASON_ADMIN_NOTENOUGH: 9, //部长金币不足
	}
	VIP_MIN_LEVEL = 1;   //最小vip等级
	VIP_MAX_LEVEL = 10;  //最大vip等级


	ZoomOutRatio = 100; //金币缩小比列;

	USER_NICKNAME_MAX_SIZE = 20//玩家昵称最大20个字符

	//消息大类型标签;
	MsgKey = {
		Default: "", //默认值;
		Net: "NetMsg",
		Wechat: "Wechat",
		Hall: "Hall",
		UI: "UI", //UI相关消息;
		Game: "Game",
		Group: "Group", //组群; //表情 // 神算子大富豪
		Hungup: "Hungup", //挂机;
		Gold: "Gold", //筹码
		MJ: "MJ", //麻将;
		WZQ: "WZQ", //五子棋;
		CX: "CX", //扯旋;
		NN: "NN", //牛牛;
		TTY: "TTY", //十点半;
		ZJH: "ZJH", //扎金花;
		BJL: "BJL", // 百家乐
		LHD: "LHD", //龙虎斗;
		QHB: "QHB", //抢红包
		TTZ: "TTZ", //推筒子;
		BMW: "BMW", //奔驰宝马;
		Birds: "Birds", //飞禽走兽;
		Fish: "Fish", // 捕鱼
		DZPoker: "DZPoker", // 德州扑克
		GB: "GoBang", //新五子棋;
		PDK: "PDK", //跑得快;
		SHOP: "SHOP",
		WEBSX: "WEBSX", //web游戏 视讯
		HUNDREDNN: "HUNDREDNN", // 百人牛牛
		ESYD: "ESYD", // 二十一点
		TB: "TB", // 骰宝
		QZPJ: "QZPJ" //抢庄牌九
	};


	EServerCfgType = {
		//服务器配置;
		FQZSTABLECFG: "fqzstablescfg" //飞禽走兽牌桌配置表;
	};
	MsgType = {
		UI_btnClickFourState: 10001, //按钮点击(4种形态的 begin move end cancel)

		C2S_game_chatMsg: 10004, //发送文本/emoji/互动表情/语音;
		S2L_game_chatMsg: 10005, //接收文本/emoji/互动表情/语音ntc后本地广播;
		L_game_stop_playVoice: 10006, //本地通知消息停止语音播放;
		L_game_show_seatchatcontent: 10007, //显示座位聊天表现(快捷短语,自定义文本,emoji)
		L_game_show_actionface: 10008, //显示互动表情
		L_game_play_seatvoiceMsg: 10009, //玩家头像显示播放对讲

		//设置页面;
		L_close_pagesetting: 10012, //关闭设置页面;
		L_refresh_pagesetting: 10013, //刷新设置页面;

		S2C_NET_MSG_NTC: 10097, //服务器推送ntc消息;
		//游戏 统一的网络请求枚举;
		C2S_start_game: 10098, //房主请求开始游戏;
		C2S_game_doready: 10099, //请求准备;
		C2S_game_doaction: 10100, //玩家操作请求;
		C2S_game_dotableaction: 10101, //麻将换三张或定缺
		C2S_game_leaveroom: 10102, //玩家点击离开游戏房间;
		C2S_game_switchroom: 10103, //玩家点击换房间;
		C2S_game_dissolut_room: 10105, //玩家请求解散房间
		C2S_game_answer_dissolut_room: 10106, //玩家同意解散房间
		L_cusCheckBox_setshowtxt: 10015, //设置cuscheckbox的显示文本

		/////////////////////////////////////////////////////////////////////

		//////////20180827 added/////////////////
		L_wx_logincallback: 10200, //微信登录回调消息,消息格式如下;
		// "openId":"oEj0o492iWG7A1uSYUhmj9Xr2mKE",
		// "nickName":"随风",
		// "gender":1,
		// "language":"zh_CN",
		// "city":"成都",
		// "province":"四川",
		// "country":"中国",

		// "avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLBKY3HKKJCoVBRRoqDzQIA6IibDyw2UO3ic5Gz5KfINFkCfCWpib4oWFn4g0ibl3gmwLEMqtd5Vowfww/xxx",
		// "watermark":{"timestamp":1535597516,"appid":"wxdb57cdc2602fc456"}
		L_wx_sharecallback: 10201, //微信分享返回{isSuccess:true/false}
		L_wx_onshow: 10202, //微信返回前台;{rid:xxxx,time:ms}

		L_wx_video_closed: 10210, //广告视频被关闭;{isEnded:true/false}

		L_wx_showopendatacanvas: 10221, //显示开放域视图;true/false;
		L_wx_postmessage2opendata: 10222, //发送自定义消息到开放域;{MsgType:EOpenDataMsgType,data:{}};

		////////断网重连//////////////////////
		L_game_table_reload: 10250, //断网后,重连重载牌桌;
		L_game_leavetable: 10251, //发起离开游戏牌桌;
		L_game_sync_awards: 10252, //同步牌桌内奖励;(增量刷新金币);
		L_game_colorpool_update_ntc: 10253, //桌内奖池更新;
		L_game_colorpool_Awards_ntc: 10254, //彩池中奖通知(特殊牌型奖励)
		L_game_receive_player_list: 10255, //获取玩家列表结果;
		/////////////////
		L_game_initData: 10256, //初始化数据(使用数据)

		/////////移植版本框架新加////////////////////////
		L_shop_openpayway: 10260, //打开商城支付面板;
		L_update_player_info: 10261, //玩家金币改变,更新玩家信息;
		L_game_recharge_ntc: 10262, //被动充值
		L_on_comfirm_quick_charge: 10263, //快速充值确认

		//////////////////////////////////////////////
		L_unbind: 10264, //解除绑定

		/////////////////邮件相关///////////////////////
		L_mail_get: 10265, //领取附件
		L_mail_open: 10266, //打开
		L_mail_delete: 10267, //删除
		L_mail_add: 10268, //新增
		L_mail_hall_update: 10269, //大厅红点更新

		////////////////兑换相关;////////////////////
		L_receive_get_bind: 10274,
		L_bank_info_modified: 10275, //支付宝/银行信息修改;
		L_withdraw_success: 10276, //兑换申请提交成功;
		L_receive_get_bank: 10277, //获取支付宝信息成功;
		L_GetWithdrawRecords: 10278, //兑换记录获取成功;
		L_bank_list_item_click: 10279, //银行卡列表点击;
		L_GetExchangeConfig: 10280, //获取兑换配置
		////////////////////////////////////////////
		L_receive_get_vcode: 10281, //获取验证码返回
		L_receive_bind_phone: 10282, //绑定手机返回
		L_receive_change_psw: 10283,
		L_receive_login_failed: 10284, //登录失败

		L_update_he_gameid: 10300, // H5清空url中的game_id
		//////////////神算子大富豪////////////////////

		L_gameboy_bet: 10400, //神算子下注
		L_magnate_bet: 10401, //大富豪下注
		L_LAM_player_bet: 10402, //玩家下注
		L_LAM_update_list: 10403, //更新数据
		L_LAM_game_settlement: 10404, //游戏结算
		L_LAM_game_start: 10405, //游戏开始
		L_LAM_award_coin: 10406, //同步金币

		//////////////保险箱刷新///////////////////////
		L_update_bank: 10407, //
		//////////////挂机相关////////////////////

		/////////////////////////////////////////
		//////////////筹码相关////////////////////暂未使用

		L_action_gold_fly: 10600, //飞筹码
		L_action_gold_clean: 10601, //清理筹码
		L_action_gold_send: 10602, //投筹码
		L_set_gold_config: 10603, //设置筹码数量上限,投注区域

		/////////////////////////////////////////
		//////////////等待下一局相关//////////////
		L_waitStart_close: 10700, //等待下一局关闭
		L_waitStart_open: 10701, //等待下一局开启

		L_wait_banker_close: 10702, //等待庄家关闭
		L_wait_banker_open: 10703, //等待庄家开启

		L_watch_close: 10704, //观战关闭
		L_watch_open: 10705, //观战开启
		/////////////////////////////////////////
		//////////////爆庄相关////////////////////
		L_banker_boom: 10800, //爆庄
		L_banker_up: 10801, //上庄
		L_banker_win: 10802, //庄家胜利
		/////////////////////////////////////////
		//////////////通杀通赔相关////////////////
		L_banker_sha: 10803, //通杀
		L_banker_pei: 10804, //通赔

		/////////////////////////////////////////
		/////////////大厅////////////////////////
		L_hall_onEnable: 10905, //再现大厅    二级界面返回大厅
		L_hall_onDisable: 10906, //隐藏大厅   大厅进入二级界面
		L_hall_bindPhone: 10907, //手机绑定成功 大厅隐藏绑定送金

		L_hall_updateFeedback_RedPoit: 10908, //你提我改红点更新

		L_hall_updateBoardAgencyItem_btn: 10909, //广告按钮刷新
		L_hall_openRecharge: 10910 //打开充值界面
		/////////////////////////////////////////
	};
	//游戏类型;
	EGameID = {
		GAME_HALL: 0, //大厅
		MAHJONG_DKG: 1, //断卡勾麻将            
		QZNN: 2, //抢庄牛牛              
		MAHJONG_SCXZ: 3, //血战麻将              
		WUZIQI: 4, //五子棋                
		CHEXUAN: 5, //扯旋
		ZJH: 6, //扎金花                
		PDK: 7, //跑的快
		MAHJONG_YBMJ: 8, //宜宾麻将              
		DDZ: 9, //斗地主
		SG: 10, //三公
		SHIDIANBAN: 11, //十点半
		ZHUOJI: 12, //捉鸡麻将  
		SSS: 13,   //十三水         
		ESYD: 14, // 二十一点    
		QZPJ: 15, // 抢庄牌九
		SANRENLIANGFANG: 20, //血战麻将3人两房        
		LIANGRENLIANGFANG: 21, //血战麻将2人两房        
		TBNN: 22, //通比牛牛               
		SJNN: 23, //随机牛牛               
		GOBANG: 31, //新五子棋   
		FISH: 52, //捕鱼      
		DZPK: 53, //德州扑克                  
		XYF: 54, //西游捕鱼  
		REDBLACK: 100, //红黑大战
		BAIJIALE: 101, //百家乐                 
		LONGHUDOU: 102, //龙虎斗                 
		BIRDS: 103, //飞禽走兽               
		QIANGHONGBAO: 104, //抢红包                 
		TTZ: 105, //推筒子                 
		HUNDREDNN: 106, //百人牛牛               
		TB: 107, //骰宝      
		SSZP: 108, //神兽转盘      
		FPJ: 109, //翻牌机
		BMW: 115, //奔驰宝马

		WEBSX: 117, //
		LB_SHZ: 118, //水浒传
		LB_SGJ: 119, //水果机
		LB_SG777: 120, //水果小玛丽
		NWNN: 121,   //牛王抢庄牛牛
		SLWH: 122,   //森林舞会

		LHJ: 124,   //老虎机（金玉满堂）
		ZZMJ: 130,   //郑州麻将
		XZMJ: 131,   //血战麻将
		KFMJ: 132,   //开封麻将
		SRLF: 133,   //三人两房
		HNMJ: 134,   //河南麻将
		LYMJ: 135,   //洛阳杠次麻将
		XLMJ: 136,   //血流麻将
		HBZZMJ: 137,   //转转麻将
		GYZJMJ: 138,   //贵阳捉鸡麻将
		HBKWX: 139,   //卡五星
		CSMJ: 140,   //长沙麻将
		WHMJ: 141,   //武汉麻将
		NJMJ: 142,   //内江麻将
		HEBMJ: 143,   //哈尔滨麻将
		SYMJ: 144,   //沈阳麻将
		HBSJZMJ: 145,   //石家庄麻将
		AYMJ: 146,     //安阳麻将
		JZMJ: 147,     //焦作麻将

	};
	/** 可以显示战绩查看按钮的游戏ID(除去百人场,SLC,捕鱼的游戏ID)  GHRD_RL_Item.ts*/
	CreateModeGameIdList = [
		this.EGameID.QZNN,
		this.EGameID.NWNN,
		this.EGameID.ZJH,
		this.EGameID.PDK,
		this.EGameID.DDZ,
		this.EGameID.SG,
		this.EGameID.TBNN,
		this.EGameID.SJNN,
		this.EGameID.SSS,
		this.EGameID.QZPJ,
		this.EGameID.ZZMJ,//
		this.EGameID.XZMJ,//
		this.EGameID.KFMJ,//
		this.EGameID.SRLF,
		this.EGameID.HNMJ,//
		this.EGameID.LYMJ,
		this.EGameID.XLMJ,
		this.EGameID.HBZZMJ,//转转麻将
		this.EGameID.GYZJMJ,//贵阳捉鸡
		this.EGameID.HBKWX,//卡五星
		this.EGameID.CSMJ,//长沙麻将
		this.EGameID.WHMJ,//武汉麻将
		this.EGameID.NJMJ,//内江麻将
		this.EGameID.HEBMJ,//哈尔滨麻将
		this.EGameID.HBSJZMJ,//石家庄麻将
		this.EGameID.AYMJ, //安阳麻将
	]
	/** 可以显示战绩回放按钮的游戏ID GHRD_RL_Item.ts*/
	CanDetailGameIdList = [
		this.EGameID.QZNN,
		this.EGameID.NWNN,
		this.EGameID.ZJH,
		this.EGameID.PDK,
		this.EGameID.DDZ,
		this.EGameID.SG,
		this.EGameID.TBNN,
		this.EGameID.SJNN,
		this.EGameID.SSS,
		this.EGameID.QZPJ,

		this.EGameID.ZZMJ,
		this.EGameID.XZMJ,
		this.EGameID.KFMJ,
		this.EGameID.SRLF,
		this.EGameID.HNMJ,
		this.EGameID.LYMJ,
		this.EGameID.XLMJ,
		this.EGameID.HBZZMJ,//转转麻将
		this.EGameID.GYZJMJ,//贵阳捉鸡
		this.EGameID.HBKWX,//卡五星
		this.EGameID.CSMJ,//长沙麻将
		this.EGameID.WHMJ,//武汉麻将
		this.EGameID.NJMJ,//内江麻将
		this.EGameID.HEBMJ,//哈尔滨麻将
		this.EGameID.HBSJZMJ,//石家庄麻将
		this.EGameID.AYMJ,//安阳麻将
	]

	/** 显示vip的平台 */
	ShowVipPlatform = [""]
	//房间类型;
	ERoomType = cc.Enum({
		UNKNOW: 0,
		/**s系统场(client:匹配场); */
		COMMON: 1, //s系统场(client:匹配场);
		/**自建房卡场 */
		ROOM_CARD: 2, //自建房卡场
		/**自建金币场 */
		GOLD: 3, //自建金币场
		/**s比赛场(client:练习场); */
		MATCH: 4, //s比赛场(client:练习场);
		/**小游戏 */
		SMALL_GAME: 5, //小游戏
		/**免费游戏 */
		FREEGAME: 6 // 免费游戏
	});

	gameName = {
		0: {
			chinese: "大厅",
			english: "hall"
		},
		2: {
			chinese: "抢庄牛牛",
			english: "QZNN"
		},
		3: {
			chinese: "血战麻将",
			english: "XZMJ"
		},
		6: {
			chinese: "炸金花",
			english: "ZJH"
		},
		7: {
			chinese: "跑得快",
			english: "PDK"
		},
		9: {
			chinese: "斗地主",
			english: "DDZ"
		},
		10: {
			chinese: "三公",
			english: "SG"
		},
		13: {
			chinese: "十三水",
			english: "SSS"
		},
		14: {
			chinese: "二十一点",
			english: "ESYD"
		},
		15: {
			chinese: "抢庄牌九",
			english: "QZPJ"
		},
		21: {
			chinese: "二人麻将",
			english: "ERMJ"
		},
		22: {
			chinese: "通比牛牛",
			english: "TBNN"
		},
		23: {
			chinese: "随机牛牛",
			english: "SJNN"
		},
		52: {
			chinese: "捕鱼",
			english: "Fish"
		},
		53: {
			chinese: "德州扑克",
			english: "DZPoker"
		},
		54: {
			chinese: "西游捕鱼",
			english: "XYF"
		},
		100: {
			chinese: "红黑大战",
			english: "HHDZ"
		},
		101: {
			chinese: "百家乐",
			english: "BJL"
		},
		102: {
			chinese: "龙虎斗",
			english: "LHD"
		},
		103: {
			chinese: "飞禽走兽",
			english: "BIRDS"
		},
		104: {
			chinese: "抢红包",
			english: "QHB"
		},
		105: {
			chinese: "推筒子",
			english: "TTZ"
		},
		106: {
			chinese: "百人牛牛",
			english: "HundredNN"
		},
		107: {
			chinese: "骰宝",
			english: "TB"
		},
		108: {
			chinese: "神兽转盘",
			english: "SSZP"
		},
		115: {
			chinese: "奔驰宝马",
			english: "BMW"
		},
		118: {
			chinese: "水浒传",
			english: "SHZ",
		},
		119: {
			chinese: "水果机",
			english: "SGJ",
		},
		120: {
			chinese: "水果小玛丽",
			english: "SGSeven",
		},
		121: {
			chinese: "牛牛",
			english: "NWNN"
		},
		122: {
			chinese: "森林舞会",
			english: "SLWH"
		},

		124: {
			chinese: "金玉满堂",
			english: "LHJ"
		},
		130: {
			chinese: "郑州麻将",
			english: "ZZMJ"
		},
		131: {
			chinese: "血战到底",
			english: "XZMJ"
		},
		132: {
			chinese: "开封麻将",
			english: "KFMJ"
		},
		133: {
			chinese: "三人两房",
			english: "XZMJ"
		},
		134: {
			chinese: "河南推倒胡",
			english: "ZZMJ"
		},
		135: {
			chinese: "洛阳杠次",
			english: "ZZMJ"
		},
		136: {
			chinese: "血流成河",
			english: "XZMJ"
		},
		137: {
			chinese: "转转麻将",
			english: "HBZZMJ"
		},
		138: {
			chinese: "贵阳捉鸡",
			english: "GYZJMJ"
		},
		139: {
			chinese: "卡五星",
			english: "HBKWX"
		},
		140: {
			chinese: "长沙麻将",
			english: "CSMJ"
		},
		141: {
			chinese: "武汉麻将",
			english: "WHMJ"
		},
		142: {
			chinese: "内江麻将",
			english: "NJMJ"
		},
		143: {
			chinese: "哈尔滨麻将",
			english: "HEBMJ"
		},
		144: {
			chinese: "沈阳麻将",
			english: "SYMJ"
		},
		145: {
			chinese: "石家庄麻将",
			english: "HBSJZMJ"
		},
		146: {
			chinese: "安阳麻将",
			english: "ZZMJ"
		},
		147: {
			chinese: "焦作麻将",
			english: "ZZMJ"
		},
		109: {
			chinese: "翻牌机",
			english: "FPJ"
		},
	};

	//--玩家站起离桌原因
	EStandupReason = {
		REASON_UNKNOW: 0, //
		REASON_ONSTANDUP: 1, //--玩家主动站起
		REASON_READYTIMEOUT_STANDUP: 2, //--准备超时站起
		REASON_DELETE_TABLE: 3, //--桌子被删除,玩家站起
		REASON_DISCONNECTED: 4, //--玩家断线了
		REASON_NOTENOUGH: 5, //--金币不足被弹起
	}
	//开放域动作类型;
	EOpenDataMsgType = {
		Undefined: 0,
		ShowPostData: 1, //显示发送的数据; 自测用动作;
		ShowFriendCloudInfo: 2, //拉取并显示自己朋友圈游戏数据;
		ShowGroupCloudInfo: 3 //拉取并显示所在某群的游戏数据;
	};
	EKeyPadType = {
		//数字按钮功能
		UNKNOWN: 0,
		ROOM_NUMBER: 1, //输入房间号
		PASSWORD: 2, //输入密码，
		ENTRY_LIMIT: 3, //进入条件
		LEAVE_LIMIT: 4, //离开条件
		BASE_SCORE: 5, //底分
		INPUT_COIN: 6, //输入金币
		TRANSFER_INPUT: 7 //转账输入
	};
	//连网状态;
	ENetworkState = {
		UNKNOW: 0,
		WIFI: 1,
		PHONE: 2
	};

	//欢迎音效播放次数
	welcome_sound = {
		hall_num: 0,
		bank_num: 0,
		charge_num: 0,
		email_num: 0,
		exchange_num: 0,
		service_num: 0,
		record_num: 0,
		feedback_num: 0,
		agency_num: 0,
		gift_num: 0,

		new_feedback: -1 //借用接口
	};
	//是否在后台
	isInBack = false;

	IsOpen = false;
	IsReconnectFail = false;
	IsReconnecting = false;
	IsInClosing = false;

	/** 打开大厅不是通过退出游戏 */
	OpenGameHallNotByGame = true;
	//
	giftData = {
		vip: 50,
		normal: 3
	};
	/**
	   *  {
	   * 
		  gift_limit_time: null, //活动持续时间
		  bind_phone_time :null,//手机绑定时间
		  giftNeed: null, //首充需要
		  giftGet: null, //首充得到
  
	  }, */
	firstChargeGiftData = null;

	//金币不足时 弹出弹框,此时 服务器踢出玩家, 但客户端保持场景,直到玩家点击确定...
	HoldScene = false;

	NotEnoughCoinType = {
		PVP: 1,
		HUNDREDPEOPLE: 2,
		ROOMSELECT: 3,
		MAHJONG: 4,
		ZJHSTART: 5
	};

	//第一次进入大厅时 是否打开过绑定送金界面
	evenOpenGift = false;
	evenOpenVipGift = false;
	PageType = {
		page: "page", //回调再后
		game: "game" //回调再前
	};
	AdaptationOffsetType = {
		left: 1,
		right: 2,
		move: 3,
		size: 4
	};
	NotEnoughCoin = "您的金币不足，请充值！";
	SimplifiedLeftNum = 2; //取简化金币时,保留的小数位
	//汉字与字体的K-V值
	FontKeyByCoin = {
		万: "w",
		亿: "e",
		元: "y",
		千元: "t",
		兆: "z",
		京: "j",
	};

	RankingType = {
		vipDengJi: 0,
		fuHaoBang: 1,
	};
	RankingTypeList = [
		//	this.RankingType.vipDengJi,
		this.RankingType.fuHaoBang
	]

	getEnglishNameById(gameId) {
		let _name = "";
		if (this.gameName[gameId]) {
			_name = this.gameName[gameId].english;
		}
		return _name;
	}
	getChineseNameById(gameId) {
		let _name = "";
		if (this.gameName[gameId]) {
			_name = this.gameName[gameId].chinese;
		}
		return _name;
	}
	getChineseNameByEnglish(englishname) {
		for (const key in this.gameName) {
			if (this.gameName[key].english == englishname) {
				return this.gameName[key].chinese
			}
		}
		return "";
	}

	getSlotsNameByTableId(tableId) {
		let name = "";
		let gameid = 0;
		if (tableId == "1180001") {
			gameid = this.EGameID.LB_SHZ;
		} else if (tableId == "1180002") {
			gameid = this.EGameID.LB_SGJ;
		} else if (tableId == "1180003") {
			gameid = this.EGameID.LB_SG777;
		}
		if (gameid) {
			if (this.gameName[gameid]) {
				name = this.gameName[gameid].english;
			}
		}
		return name;
	}

	getPlantNameByID(plantId) {
		return this.EPlantName[plantId] || "";
	}
	startEnter
}

export let glDefine: GLDefine = new GLDefine();
